function createReactive(obj) {
    return new Proxy(obj,{
        set(target, key, value) {
            target[key] = value
            updateView()
            return true
        }
    })
}
const model = createReactive({ text: '' })
function updateView() {
    model.text = 2
}
console.log(model.text)